SetSQLCredentials Method
Syntax
Arguments
- Username as CCharacter
The value of the SQL username.
- Password as C Character
The value of the SQL password.
Returns
- resultLogical
Returns a .t. or .f. value. Check Context.Session.CallResult.Success before using the return value.
Description
Sets the SQL username and password used for SQL connections.
Discussion
Context.Session.SetSQLCredentials() sets the SQL username and password used for SQL connections. The username and password is used to resolve connection strings where the credentials have not been specified in the AlphaDAO connection. Alpha Anywhere will use the specified username and password to resolve any AlphaDAO connection strings for which the username and password are undefined.
The following Xbasic will set the SQL Credentials:
context.session.setSQLCredentials("userNameForUser","passwordForUser")
Use context.session.getSQLCredentials() to read the SQL Credentials in the current session.
See Also